// Package ioc
// Created by GoLand
// @User: lenora
// @Date: 2023/12/17
// @Time: 17:33

package ioc

import (
	"camp/microbook/internal/service/sms"
	"camp/microbook/internal/service/sms/local"
)

func InitSmsBaseService() []sms.BaseService {
	return []sms.BaseService{local.NewService()}
}

func InitSmsService() sms.Service {
	return local.NewService()
}

func InitFailover() sms.TimeoutFailover {
	return sms.NewTimeoutFailover(3)
}

func InitSmsAuth() sms.AuthService {
	return sms.NewAuthService([]byte("DdNnrGzeUwXnFZKOGJFATNpnsHTywHGn"))
}
